﻿// This file is part of Code4Public (http://code4public.codeplex.com)
// Copyright 2011 Sina Iravanian - <sina@sinairv.com>
//
// This source file(s) may be redistributed, altered and customized
// by any means PROVIDING the authors name and all copyright
// notices remain intact.
// THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED. USE IT AT YOUR OWN RISK. THE AUTHOR ACCEPTS NO
// LIABILITY FOR ANY DATA DAMAGE/LOSS THAT THIS PRODUCT MAY CAUSE.
// ------------------------------------------------------------------

using System;
using YAXLib;

namespace Code4Public.Languages
{
    public class CommentInfo
    {
        public CommentInfo() : this("", "")
        {
        }

        public CommentInfo(string startsWith, string endsWith)
        {
            StartsWith = startsWith;
            EndsWith = endsWith;
        }

        [YAXAttributeFor(".#startswith")]
        public string StartsWith { get; private set; }

        [YAXAttributeFor(".#endswith")]
        public string EndsWith { get; private set; }

        public override string ToString()
        {
            return String.Format("Comment - StartsWith: [{0}] - EndsWith: [{1}]", StartsWith, EndsWith);
        }
    }
}
